﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL.Comment;
using BLL.Comment.Impl;
using Model;
using BLL.Users;
using BLL.Users.Impl;

public partial class Page_CommentSite_CommentOfDetail : System.Web.UI.Page
{
    string commentId = "";
    protected void Page_Load(object sender, EventArgs e)
    {
        commentId = Request["commentId"].ToString();
        siteCommentDataBind();
    }
    protected void btnEventsInfoBack_Click(object sender, ImageClickEventArgs e)
    {

    }

    private void siteCommentDataBind()
    {
        SiteCommentBO siteCommentBO = new SiteCommentBOImpl();
        List<SiteComment> siteCommentList = siteCommentBO.GetEntityList("SiteCommentId",commentId,"SiteCommentDate");
        dvCommentsInfo.DataSource = siteCommentList;
        dvCommentsInfo.DataBind();
    }

    protected void LBUserId_Click(object sender, EventArgs e)
    {
        LinkButton bt = (LinkButton)sender;
        string userId = bt.CommandArgument.ToString();
        UserManageBO userManageBO = new UserManageBOImpl();
        string url = userManageBO.ShowUserDetail(userId);
        Response.Redirect(url);
    }
    protected void btnEventsInfoBack_Click1(object sender, ImageClickEventArgs e)
    {
        Response.Write("<script language=javascript>history.go(-2);</script>");
    }
}